<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/displaytag.tld" prefix="display"%>
<%@ page import="co.gov.medellin.ssti.sub.model.vo.AtributoVO"%>

<script type="text/javascript"
	src="<%= request.getContextPath() + "/js/calendar6.js" %>"></script>
<script type="text/javascript"
	src="<%= request.getContextPath() + "/js/popUP.js" %>"></script>

<%@ page contentType="text/html;charset=utf-8"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>M&oacute;dulo de Secretarias</title>
<link href="../../css/jdeveloper.css" rel="stylesheet" media="screen" />
<link href="<%= request.getContextPath() + "/css/bloques.css" %>"
	rel="stylesheet" type="text/css">

<script type="text/javascript"> 

      function enviar(locacion1)
      {
        document.frmsubsecretarias.opcion.value='1';
        document.frmsubsecretarias.action=locacion1;
        document.frmsubsecretarias.submit();
      }
              
    </script>

</head>
<body>

	<form name="frmsubsecretarias" method="get">
		<br />
		<logic:present scope="request" name="ListaSubAreas">
			<logic:iterate id="subareas" length="1" name="ListaSubAreas"
				type="co.gov.medellin.ssti.sub.model.vo.AreaVO">
				<div align="center">
					<p class="titulosenblanco">
						Lista de subsecretarias de
						<bean:write name="subareas" property="nombre" />
					</p>
				</div>
			</logic:iterate>
		</logic:present>
		<div align="center">
			<table style="border: 0; padding: 2px; border-spacing: 3px;">

				<tr>
					<td>
						<div align="center">
							<logic:present scope="request" name="ListaSubAreas">
								<display:table name="requestScope.ListaSubAreas" id="listArea"
									requestURI='<%= request.getContextPath() + "/Areas/SubAreas.do" %>'
									style="width:100%" class="bordesTable">
									<display:column headerClass="headerTable" property="nombre"
										title="SECRETARIA" class="Numero" sortable="true">
									</display:column>
									<display:column headerClass="headerTable"
										property="nombresubarea" title="SUBSECRETARIAS" class="Numero"
										sortable="true">
									</display:column>
									<display:column headerClass="headerTable"
										property="descripcion" title="DESCRIPCION" class="Numero">
									</display:column>
									<display:column headerClass="headerTable" title="MODIFICAR"
										class="Numero">
										<DIV align="center">
											<html:link paramId="code" paramName="listArea"
												paramProperty="code" page="/Areas/ModificationSubAreas.do">
												<img border="0"
													src="<%=request.getContextPath() + "/images/modificar.gif"%>" />
											</html:link>
										</DIV>
									</display:column>
								</display:table>
							</logic:present>

							<logic:notPresent scope="request" name="ListaSubAreas">
								<DIV align="center" class="titulosenblanco">
									<strong>La secretar&iacute;a no tiene
										subsecretar&iacute;as</strong>
								</DIV>
								<BR />
							</logic:notPresent>

						</div>
					</td>
				</tr>
			</table>
		</div>
		<div align="center">
			<% String Ruta2 = "'"+request.getContextPath() + "/Areas/ModuloAreas.do'"; %>
			<input type="HIDDEN" name="opcion" /> <input type="image"
				onclick="enviar(<%=Ruta2%>)"
				src="<%= request.getContextPath() + "/images/b_atras.gif"%>" />
		</div>
	</form>
</body>
</html>
